package com.cy.shiro.dao;

import com.cy.shiro.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface UserDao {

//    @Select("select * from user where name = #{name}")
    public User findByName(String name);

//    @Select("select * from user where id = #{id}")
    public User findById(Integer id);
}
